﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class yuangong
    {
        //string XL;
        public yuangong()
        {
            this.xueli = "专科";
        }

        public yuangong(string userid, string username, string usersex, string xueli, string bumen)
        {
            this.userid = userid;
            this.username = username;
            this.usersex = usersex;
            this.xueli = xueli;
            this.bumen = bumen;
        }

        public string userid { get; set; }
        public string username { get; set; }
        public string usersex { get; set; }
        public string xueli { get; set; }
        public string bumen { get; set; }
        public void output() {

            Console.WriteLine($"工号{userid},姓名{username}，性别{usersex}，学历{this.xueli},部门{bumen}");
        }

    }
}
